﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace CP.Utility
{
    public class ExMessageBox
    {
        public static DialogResult Show(string text)
        {
            return Show(text, "");
        }

        public static DialogResult Show(string text, string caption)
        {
            return XtraMessageBox.Show(text, caption, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static DialogResult Confirm(string text)
        {
            return Confirm(text, "");
        }

        public static DialogResult Confirm(string text, string caption)
        {
            return XtraMessageBox.Show(text, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);
        }


    }
}
